import request from '@/utils/request'

// 查询退款查询列表
export function listRefundQuery(query) {
  return request({
    url: '/fund/refundQuery/list',
    method: 'get',
    params: query
  })
}

// 查询退款查询详细
export function getRefundQuery(refundId) {
  return request({
    url: '/fund/refundQuery/' + refundId,
    method: 'get'
  })
}

// 新增退款查询
export function addRefundQuery(data) {
  return request({
    url: '/fund/refundQuery',
    method: 'post',
    data: data
  })
}

// 修改退款查询
export function updateRefundQuery(data) {
  return request({
    url: '/fund/refundQuery',
    method: 'put',
    data: data
  })
}

// 删除退款查询
export function delRefundQuery(refundId) {
  return request({
    url: '/fund/refundQuery/' + refundId,
    method: 'delete'
  })
}

export function getNote(costId) {
  return request({
    url:'/fund/refundQuery/getNote/'+costId,
    method:'get'
  })
}

// 获取小区信息
export function getAreaInfo1(areaName) {
  return request({
    url: '/house/area/list2/'+areaName,
    method: 'get'
  })
}

// 获取小区信息
export function getAreaInfo() {
  return request({
    url: '/house/area/list1',
    method: 'get'
  })
}

// 获取楼宇信息
export function getGroupInfo(areaName) {
  return request({
    url: '/house/group/getGroupInfo/'+areaName,
    method: 'get'
  })
}

// 获取单元信息
export function getUnitInfo(areaName,groupName) {
  return request({
    url: '/house/unit/getUnitInfo/'+areaName+"/"+groupName,
    method: 'get'
  })
}
